import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class O57II {
    public static void main(String[] args) {
        O57II o = new O57II();
        System.out.println(o.findContinuousSequence(9));
    }
    public int[][] findContinuousSequence(int target) {
        int di = 2;
        List<int[]> list = new ArrayList<>();
        while (true){
            if (di*(di/2)>target)
                break;
            if (di%2==1&&target%di==0&&target/di-di/2>0){
                int[] re = new int[di];
                int t = 0;
                for (int i = target/di-di/2; i <= target/di+di/2; i++) {
                    re[t] = i;
                    t++;
                }
                list.add(re);
            }else if (di%2==0&&target%di==di/2&&(target/di-di/2+1)>0){
                int[] re = new int[di];
                int t = 0;
                for (int i = target/di-di/2+1; i <= target/di+di/2; i++) {
                    re[t] = i;
                    t++;
                }
                list.add(re);
            }
            di++;
        }
        int[][] re = new int[list.size()][];
        list.sort(Comparator.comparingInt(o -> o[0]));
        for (int i = 0; i < re.length; i++) {
            re[i] = list.get(i);
        }
        return re;
    }
}
